-- GENERATED SPELL FOR [Kolkar Battle Lord] --


function spell0_4636(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_4636', 663, 1)
end

function spell1_4636(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(8258,pUnit)
pUnit:RegisterEvent('Sorts_4636', 521, 1)
end

function spell2_4636(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(25710,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4636', 633, 1)
end

function Sorts_4636(pUnit, Event)
local choix_sorts_4636 = math.random(0, 2)
if choix_sorts_4636 == 0 then
pUnit:RegisterEvent('spell0_4636', 1, 1)
end
if choix_sorts_4636 == 1 then
pUnit:RegisterEvent('spell1_4636', 1, 1)
end
if choix_sorts_4636 == 2 then
pUnit:RegisterEvent('spell2_4636', 1, 1)
end
end

function mob4636_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4636', math.random(1500, 3000), 1)
end

function mob4636_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4636_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4636_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4636, 1, 'mob4636_Action')
RegisterUnitEvent(4636, 2, 'mob4636_Leave')
RegisterUnitEvent(4636, 3, 'mob4636_Kill')
RegisterUnitEvent(4636, 4, 'mob4636_Die')
